package cn.imnaer.service.rest.resquest.model;

import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2015/7/31.
 */
public class TribalCircleParams implements Serializable {
    // 为空则查询全部
    private String placeId;
    private String placeType;
    // 为空则全部部落
    private List<String> tribalIds;
    // 为空则全部内容(精品/非精品)
    private String isStar;
    private long criteriaTime;
    private boolean isUpdate;

    public String getPlaceId() {
        return placeId;
    }

    public void setPlaceId(String placeId) {
        this.placeId = placeId;
    }

    public String getPlaceType() {
        return placeType;
    }

    public void setPlaceType(String placeType) {
        this.placeType = placeType;
    }

    public List<String> getTribalIds() {
        return tribalIds;
    }

    public void setTribalIds(List<String> tribalIds) {
        this.tribalIds = tribalIds;
    }

    public String getIsStar() {
        return isStar;
    }

    public void setIsStar(String isStar) {
        this.isStar = isStar;
    }

    public Boolean getBooleanIsStar() {
        if(StringUtils.isEmpty(this.isStar)) {
            return null;
        }
        if(this.isStar.equals("0")) {
            return false;
        }
        return true;
    }

    public long getCriteriaTime() {
        return criteriaTime;
    }

    public void setCriteriaTime(long criteriaTime) {
        this.criteriaTime = criteriaTime;
    }

    public boolean getIsUpdate() {
        return isUpdate;
    }

    public void setIsUpdate(boolean isUpdate) {
        this.isUpdate = isUpdate;
    }
}
